#!/usr/bin/env python
# -*- coding:GBK -*-
#========================================================================
#   FileName: minSocketServer.py
#     Author: linh
#      Email: linh@ecallcen.com
#   HomePage: 
# LastChange: 2012-09-07 23:07:49
#========================================================================


import socket
import time
if __name__ == '__main__':
   #remote_host = '117.27.135.204'
   remote_host = '127.0.0.1'
   #remote_port = 30037
   remote_port = 9191 
   #send_buf = send_buf.replace('\x0D\x0A', '') 
   sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
   print remote_host
   print remote_port
   sock.connect((remote_host, remote_port))
   for index in range(10):
       sock.send('condy:'+str(index)+'\n')
       time.sleep(1)
       response_data = sock.recv(1024)
       print response_data
   sock.close()
    
